package com.ruoyi.zyx.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.core.domain.entity.ZyxDevice;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 保养信息对象 zyx_takecare
 *
 * @author lhs
 * @date 2021-06-01
 */
public class ZyxTakecare extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 医院id 关联部门表 */
    @Excel(name = "医院id 关联部门表")
    private Long departid;

    /** 设备id */
    @Excel(name = "设备id")
    private Long deviceid;

    /** 起始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "起始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startdate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下次保养日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date nexttakecaredate;//下次保养日期

    /** 下次日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下次日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date nextdate;

    /** 提醒周期 */
    @Excel(name = "提醒周期")
    private Integer warncycle;

    /** 提醒 提前多少天提醒 */
    @Excel(name = "提前多少天提醒")
    private Integer warndaynum;

    /** 是否提醒 1是 0否 */
    private String iswarn;

    /** 删除标记 */
    private String delFlag;

    private SysDept sysDept;
    private ZyxDevice zyxDevice;
    private String devicemodel;//设备型号

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date lastdate;//上次检定日期

    private Integer distanceday;//距离下次保养天数

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDepartid(Long departid)
    {
        this.departid = departid;
    }

    public Long getDepartid()
    {
        return departid;
    }
    public void setDeviceid(Long deviceid)
    {
        this.deviceid = deviceid;
    }

    public Long getDeviceid()
    {
        return deviceid;
    }
    public void setStartdate(Date startdate)
    {
        this.startdate = startdate;
    }

    public Date getStartdate()
    {
        return startdate;
    }
    public void setNextdate(Date nextdate)
    {
        this.nextdate = nextdate;
    }

    public Date getNextdate()
    {
        return nextdate;
    }
    public void setWarncycle(Integer warncycle)
    {
        this.warncycle = warncycle;
    }

    public Integer getWarncycle()
    {
        return warncycle;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("departid", getDepartid())
            .append("deviceid", getDeviceid())
            .append("startdate", getStartdate())
            .append("nextdate", getNextdate())
            .append("warncycle", getWarncycle())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
                .append("zyxDevice",getZyxDevice())
                .append("warndaynum",getWarndaynum())
                .append("iswarn",getIswarn())
            .toString();
    }

    public SysDept getSysDept() {
        return sysDept;
    }

    public void setSysDept(SysDept sysDept) {
        this.sysDept = sysDept;
    }

    public ZyxDevice getZyxDevice() {
        return zyxDevice;
    }

    public void setZyxDevice(ZyxDevice zyxDevice) {
        this.zyxDevice = zyxDevice;
    }

    public String getDevicemodel() {
        return devicemodel;
    }

    public void setDevicemodel(String devicemodel) {
        this.devicemodel = devicemodel;
    }

    public Integer getWarndaynum() {
        return warndaynum;
    }

    public void setWarndaynum(Integer warndaynum) {
        this.warndaynum = warndaynum;
    }

    public String getIswarn() {
        return iswarn;
    }

    public void setIswarn(String iswarn) {
        this.iswarn = iswarn;
    }

    public Date getNexttakecaredate() {
        return nexttakecaredate;
    }

    public void setNexttakecaredate(Date nexttakecaredate) {
        this.nexttakecaredate = nexttakecaredate;
    }

    public Date getLastdate() {
        return lastdate;
    }

    public void setLastdate(Date lastdate) {
        this.lastdate = lastdate;
    }

    public Integer getDistanceday() {
        return distanceday;
    }

    public void setDistanceday(Integer distanceday) {
        this.distanceday = distanceday;
    }
}
